<div class="text-center bg-primary text-white p-4">
    <a href="{:url('profile/avatar')}">
        <if condition="empty($avatar)">
            <img src="/assets/dist/images/headicon_128.png" class="headicon rounded-circle shadow-sm"/>
            <else />
            <img src="{:cmf_get_user_avatar_url($avatar)}" class="headicon rounded-circle  shadow-sm"/>
        </if>
    </a>
    <h5 class="mt-3">{$user_nickname|default='未填写'}</h5>
    <p class="mb-0">加入于{:func_friendly_time($create_time)}</p>
</div>
<div class="dropdown" style="position: absolute;left: 15px;margin-top: 10px;">
    <a class="btn btn-sm btn-light dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-navicon"></i></a>
    <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
        <a class="dropdown-item" href="{:cmf_url('businesscard/card/my')}"><i class="fa fa-vcard-o fa-fw"></i> 我的名片</a>
        <a class="dropdown-item" href="{:cmf_url('user/Profile/edit')}"><i class="fa fa-list-alt fa-fw"></i> 修改资料</a>
        <a class="dropdown-item" href="{:cmf_url('user/Profile/password')}"><i class="fa fa-lock fa-fw"></i> 修改密码</a>
        <a class="dropdown-item" href="{:cmf_url('user/Profile/avatar')}"><i class="fa fa-user fa-fw"></i> 编辑头像</a>
        <a class="dropdown-item" href="{:cmf_url('user/Profile/binding')}"><i class="fa fa-exchange fa-fw"></i> 绑定账号</a>
        <a class="dropdown-item" href="{:cmf_url('user/favorite/index')}"><i class="fa fa-star-o fa-fw"></i> 我的收藏</a>
        <a class="dropdown-item" href="{:url('portal/article/myIndex')}"><i class="fa fa-file-text fa-fw"></i> 我的帖子</a>
        <!--<a class="dropdown-item" href="{:url('chem/order/index')}"><i class="fa fa-list fa-fw"></i> 我的订单</a>-->
        <a class="dropdown-item" href="{:cmf_url('user/comment/index')}"><i class="fa fa-comments-o fa-fw"></i> 我的评论</a>
    </div>
</div>